//
//  XLProfileTableViewController.swift
//  XLWeiBo
//
//  Created by 李晓龙 on 16/9/19.
//  Copyright © 2016年 lixiaolong. All rights reserved.
//

import UIKit

class XLProfileTableViewController: XLVisitorTableVC {

    override func viewDidLoad() {
        super.viewDidLoad()

        if islogin {
        addNavRightButton()
        }else {
            visitorView?.updateVisitorInfo(message: "登录后，你的微博、相册、个人资料会显示在这里，展示给别人", imageName: "visitordiscover_image_profile")
        }
    }
    
    //添加右上角Item
    private func addNavRightButton() {
        
        navigationItem.rightBarButtonItem = UIBarButtonItem(title: "PUSH", target: self, action: #selector(pushAction))
        
    }
    
    //点击事件
    func pushAction() -> Void {
        let testVc = XLTestVC()
        
        navigationController?.pushViewController(testVc, animated: true)
    }
        
}
